package uos.gcds.style;

import java.util.ArrayList;
import java.util.List;

import uos.gcds.Item;
import uos.gcds.food.Food;

public class Style extends Item {

	private int price;
	private List<StyleComponent> listComponents;

	public Style(String name, String detail, int price){
		this.setName(name);
		this.setDetail(detail);
		this.setPrice(price);
		this.setComponentList(new ArrayList<StyleComponent>());
	}

	public void setComponentList(List<StyleComponent> list) {
		this.listComponents = list;
	}
	
	public List<StyleComponent> getComponentList(){
		return this.listComponents;
	}

	public Style() {
	}
	
	public void setPrice(int price){
		this.price = price;
	}
	
	public int getPrice(){
		return this.price;
	}
	
	public void updateItem(Item desc) {
		Style item = (Style)desc;
		this.setName( item.getName() );
		this.setDetail( item.getDetail() );
		this.setPrice( item.getPrice() );
		this.setComponentList( item.getComponentList() );
	}
}
